package com.ryan.quartz.temp.factory;

/**
 * @author Rayn on 2017/10/29.
 * @email liuwei412552703@163.com.
 */
public abstract class PizzaStore2 {



    public Pizza2 orderPizza(String type){
        Pizza2 pizza = null;

        create(type);

        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();

        return pizza;
    }

    /**
     *
     * @param type
     * @return
     */
    public abstract Pizza2 create(String type);
}
